//
// Notification drawer
// -----------------------------------------------

notification-drawer-wrapper {
  .blank-state-pf-title {
    font-size: @font-size-h4;
  }
  .drawer-pf {
    height: calc(100vh ~"-" (@navbar-os-header-height-mobile + @project-bar-height-mobile));
    opacity: 1;
    position: fixed;
    right: 0;
    top: (@navbar-os-header-height-mobile + @project-bar-height-mobile);
    transition: top 150ms ease-in-out, opacity 150ms;
    z-index: @zindex-navbar-fixed - 2; // two less than navbar, one less than project-bar
    @media(max-width: 350px) {
      left: 0;
      width: 100%;
    }
    @media(min-width: @screen-sm-min) {
      height: calc(100vh ~"-" (@navbar-os-header-height-desktop + @project-bar-height-desktop) ~"-" 20px); // 20px bottom gutter
      top: (@navbar-os-header-height-desktop + @project-bar-height-desktop);
    }
    &.drawer-pf-expanded {
      left: 0;
      @media(min-width: @screen-sm-min) {
        left: 270px;
      }
    }
    &.hide {
      opacity: 0;
      top: 38px;
    }
    &.hide-add,
    &.hide-remove {
      display: block !important;
    }
  }
  // the whole block is clickable, need to set pointer on all of these
  // for the correct visual
  .drawer-pf-notification-inner.is-clickable,
  .is-clickable .drawer-pf-notification-info,
  .is-clickable .drawer-pf-notification-message {
    cursor: pointer;
  }
  .drawer-pf-notification {
    padding: 0;
    &.ng-leave {
      transition: 0.25s linear all;
      opacity: 1;
      &.ng-leave-active {
        opacity: 0;
      }
    }
  }
  .drawer-pf-notification-info {
    font-size: @font-size-small;
  }
  .drawer-pf-notification-inner {
    padding: 15px;
    .drawer-pf-notification-close {
      margin-right: (@grid-gutter-width/(-4)); // vertically align with dropdown-kebab-pf
      .pficon-close {
        color: @gray-darker; // match dropdown-kebab-pf color
        &:active,
        &:focus,
        &:hover
         {
          text-decoration: none;
        }
      }
    }
  }
  .expanded-notification {
    .drawer-pf-notification-info {
      .text-muted;
    }
    .drawer-pf-notification-message-expanded {
      padding: 10px 10px 10px 42px;
      .text-muted;
    }
    &.unread {
      .drawer-pf-notification-info {
        color: inherit;
      }
      .drawer-pf-notification-message-expanded {
        color: inherit;
        font-weight: normal;
        .word-break();
      }
    }
  }
}

.panel-heading {
  .panel-title {
    color: @color-pf-black-700;
    font-weight: bold;
    line-height: normal;
    // TODO: hack to eliminate side-to-side wobble
    // There is a hard-coded <h4> that wraps the header:
    //   - https://github.com/patternfly/angular-patternfly/issues/539
    // I'm putting quite a bit of markup inside the header,
    // need to tinker to eliminate this rule.
    overflow:hidden;
    .container-fluid {
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
    }
    .panel-counter {
      font-size: @font-size-small;
      font-weight: normal;
      padding: 0;
      a {
        display: inline-block;
        font-style: normal;
      }
    }
  }
}
